package com.winter.common;

/**
 * 统一response返回对象
 */
public class Response<T> {

    /**
     * 返回码
     */
    private Integer retCode;

    /**
     * 返回提示消息
     * 
     */
    private String retMsg;

    /**
     * 返回数据体
     */
    private T data;

    public Response() {
        this.retCode = 0;
        this.retMsg = "成功";
    }

    public Integer getRetCode() {
        return retCode;
    }

    public void setRetCode(Integer retCode) {
        this.retCode = retCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

}
